using System.Threading.Tasks;
using JoyfulHomeJourney.BackEnd.Infrastructure.Atrributes;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses;
namespace JoyfulHomeJourney.BackEnd.Server.Interfaces
{
    [ProvideClassOrInterface]
    public interface IDictionarysServer
    {
        Task<ResponseApiDto> DetailAsync(string id);

        Task<ResponseApiDto> AddAsync(RequestDictionarysDto dto);
        Task<ResponseApiDto> UpdateAsync(RequestDictionarysDto dto);
        Task<ResponseApiDto> DeleteAsync(RequestDictionarysDto dto);
        Task<ResponseApiDto> PaginationAsync(int page, int limit);
        Task<ResponseApiDto> GetDictionaryListByDictionaryTypeKey(string key);
        Task<ResponseApiDto> GetDictionaryTreeByDictionaryTypeKey(string key);
        Task<ResponseApiDto> GetCustomerIndustry();
        Task<ResponseApiDto> GetCustomerLevel();
        Task<ResponseApiDto> GetCustomerSource();
        Task<ResponseApiDto> GetDictionaryListByParentId(string parentId);
        Task<ResponseApiDto> GetFollowWay();
    }
}
